﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;

namespace Ewts.BaseData
{
    public partial class CustomerAddressShow : System.Web.UI.Page
    {
        public string strid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    strid = Request.Params["id"];
                    int id = (Convert.ToInt32(strid));
                    ShowInfo(id);
                }
            }
        }

        private void ShowInfo(int id)
        {
            DataLib.BLL.CumtomerAddress bll = new DataLib.BLL.CumtomerAddress();
            DataLib.Model.CumtomerAddress model = bll.GetModel(id);
            this.lblid.Text = model.id.ToString();
            this.lblcustomerID.Text = model.customerid.ToString();
            this.lblcompanyname.Text = model.companyname;
            this.txtcity.Text = model.City;
            this.lbladdress.Text = model.address;
            this.lbllinkman.Text = model.linkman;
            this.lblphone.Text = model.phone;

        }


    }
}